package de.graffiti.entities;

// Generated 07.09.2009 22:38:55 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.validator.Length;

/**
 * Wallpaper generated by hbm2java
 */
@Entity
@Table(name = "wallpaper", catalog = "graffiti")
@NamedQueries({@NamedQuery(name = "Wallpaper.findById", query = "SELECT wp FROM Wallpaper wp  WHERE wp.wallpaperid = :wallpaperid"), @NamedQuery(name = "Wallpaper.getAll", query = "SELECT wp FROM Wallpaper wp  WHERE wp.status = :status")})
public class Wallpaper implements java.io.Serializable, de.graffiti.interfaces.Wallpaper
{
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "wallpaperid", unique = true, nullable = false)
	private Integer wallpaperid;

	@Column(name = "author", length = 50)
	@Length(max = 50)
	private String author;

	@Column(name = "title", length = 50)
	@Length(max = 50)
	private String title;

	@Column(name = "paintedcontentid")
	private Integer paintedcontentid;

	@Column(name = "originalcontentid")
	private Integer originalcontentid;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "creationdate", length = 19)
	private Date creationdate;

	@Column(name = "repeating", length = 1)
	@Length(max = 1)
	private String repeating;

	@Column(name = "status", length = 1)
	@Length(max = 1)
	private String status;

	@Column(name = "height")
	private Integer height;

	@Column(name = "width")
	private Integer width;

	public Wallpaper()
	{
	}

	/**
	 * 
	 * @param author
	 * @param paintedcontentid
	 * @param originalcontentid
	 * @param creationdate
	 * @param repeating
	 * @param status
	 * @param height
	 * @param width
	 */
	public Wallpaper(String author, Integer paintedcontentid, Integer originalcontentid, Date creationdate, String repeating, String status, Integer height, Integer width)
	{
		this.author = author;
		this.paintedcontentid = paintedcontentid;
		this.originalcontentid = originalcontentid;
		this.creationdate = creationdate;
		this.repeating = repeating;
		this.status = status;
		this.height = height;
		this.width = width;
	}

	public Integer getWallpaperid()
	{
		return this.wallpaperid;
	}

	public void setWallpaperid(Integer wallpaperid)
	{
		this.wallpaperid = wallpaperid;
	}

	public String getAuthor()
	{
		return this.author;
	}

	public void setAuthor(String author)
	{
		this.author = author;
	}

	public String getTitle()
	{
		return this.title;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public Integer getPaintedcontentid()
	{
		return this.paintedcontentid;
	}

	public void setPaintedcontentid(Integer paintedcontentid)
	{
		this.paintedcontentid = paintedcontentid;
	}

	public Integer getOriginalcontentid()
	{
		return this.originalcontentid;
	}

	public void setOriginalcontentid(Integer originalcontentid)
	{
		this.originalcontentid = originalcontentid;
	}

	public Date getCreationdate()
	{
		return this.creationdate;
	}

	public void setCreationdate(Date creationdate)
	{
		this.creationdate = creationdate;
	}

	public String getRepeating()
	{
		return this.repeating;
	}

	public void setRepeating(String repeating)
	{
		this.repeating = repeating;
	}

	public String getStatus()
	{
		return this.status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	public Integer getHeight()
	{
		return this.height;
	}

	public void setHeight(Integer height)
	{
		this.height = height;
	}

	public Integer getWidth()
	{
		return this.width;
	}

	public void setWidth(Integer width)
	{
		this.width = width;
	}

}
